package com.tanhan.mindapp.dao.SysMenuDTO;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
@Schema(description = "系统菜单新增DTO")
public class SysMenuAddDTO {
    
    @Schema(description = "菜单名称", example = "用户管理")
    private String menuName;

    @Schema(description = "父菜单ID", example = "0")
    private Long parentId;

    @Schema(description = "显示顺序", example = "1")
    private Integer orderNum;

    @Schema(description = "路由地址", example = "/system/user")
    private String path;

    @Schema(description = "组件路径", example = "system/user/index")
    private String component;

    @Schema(description = "路由参数", example = "status=1")
    private String query;

    @Schema(description = "是否为外链（0是 1否）", example = "1", allowableValues = {"0", "1"})
    private Integer isFrame;

    @Schema(description = "是否缓存（0缓存 1不缓存）", example = "0", allowableValues = {"0", "1"})
    private Integer isCache;

    @Schema(description = "菜单类型（M目录 C菜单 F按钮）", requiredMode = Schema.RequiredMode.REQUIRED, example = "C", allowableValues = {"M", "C", "F"})
    private String menuType;

    @Schema(description = "菜单显示状态（0显示 1隐藏）", example = "0", allowableValues = {"0", "1"})
    private String visible;

    @Schema(description = "菜单状态（0正常 1停用）", example = "0", allowableValues = {"0", "1"})
    private String status;

    @Schema(description = "权限标识", example = "system:user:list")
    private String perms;

    @Schema(description = "菜单图标", example = "#")
    private String icon;
}
